Fixed issues in Maximal Rectangle 3rd solution