Reduce inflection point runs
Reduce inflection point runs

Reduce inflection point runs of length 3 to a single point, selecting
the point closest to the index midpoint between the two extrema ends.

oliverlee/antlia