peaks function

Peaks or local maxima