clarify searching to left of first and to right of last extremum