Fixed the name of the module -- it should be StateCont, not State.
Added minBy/maxBy and minWith/maxWith functions.