There is the picture with cut rectangles.
I need to divide the picture for rectangles. Count of rectangles must be minimum.