finished leetcode maximal rectangle for #1 time