Add O(n^2) solution to maximal_rectangle problem.