an AC solution for largest rectangle under histogram