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