add maximal rectangle solution