Better count of local maxima in SpikeDetector
Add treshold to SpikeDetector #1