update solution for Maximal Rectangle