resolve Maximal_Rectangle