Maximal Rectangle - first version