Find the closest maximum going up hill
object that contains property x (an ordered increasing array) and y (an array).
options.
an object with the x/y value.
Find the closest maximum going up hill