add first point to extrema