Writing box packing algorithm from scratch | Hacker News Reader