A packing algorithm for 2D bin packing. Largely based on code and a blog post by Jake Gordon.