update LargestRectangleinHistogram
O(n^2) to O(n)
implemented by Stack