Implemented most of helper method for the maxrects packing algorithm apart from the find_position series of methods based on the packing heuristic chosen.