33. Finding local extremes