https://en.wikibooks.org/wiki/Calculus/Extrema_and_Points_of_Inflection https://en.wikipedia.org/wiki/Hill_climbing