Reversing an n-bit number in O(log n) | Hacker News Reader