Adding largest rectangle in histogram