solve the largest rectangle in histogram problem.