How to pack ternary numbers in 8-bit bytes | Hacker News Reader