an incorrect solution for maximal rectangle