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