Find the closest maximum going up hill
Object that contains property x (an ordered increasing array) and y (an array)
options
Find the closest maximum going up hill