done after finishing largest_rectangle_in_histogram