find_peaks function

Find local maxima or global maximum (peaks)