Create Largest Rectangle in Histogram (pyemma)