naive solution to Maximal Rectangle