update maximal_rectangle another solution