Added stable_max_element.
min use cases.