new largestRectangleHist function