find_peak_boundaries function

find_peak_boundaries