Update simple-peak-detector.cpp

Reformatted code.