Tight 2D rectangle packer suitable for sprites.