Rectangle Bin packing algorithm :)