Returns the numberMaxPoints points with the bigger y.
Object that contains property x (an ordered increasing array) and y (an array)
Number of points to keep
numberMaxPoints
Returns the numberMaxPoints points with the bigger y.