missing square root in peakfinder algorithm 6