Maximal_Rectangle - second version
Subsets - first version