finding local extrema, example 2.mp4