Changed summing of buffer halves for findPeaks