Look at two points and keep one third: for sorted values, or for the peak of a hill.
This interactive visualization needs JavaScript.