largest rectangle in histogram, stack application.
remove duplicate in sorted list.