wrong solution to LargestRectangleInHistogram