Source code for performing 2d rectangular bin packing.