A rectangle packer with dimensions that are powers of 2