[Moose-dev] Rectangle packing algorithm