largest rectangle in histogram : O(n) method!

O(n) time complexity ，O(n) space complexity