How to encode two integers into a single integer | Hacker News Reader