Splits a rectangle in to many based on a collection of input values representing the areas of the smaller rectangles.