I try to find peaks (local maxima) in a curve and get distance between them, first I planned to make all the curves to positive (like a mirror, put all plot above X axis) a