Update simple-peak-detector.cpp