Largest rectangle in histogram solved