auto instead of long iterator type.
Refactoring of findPeak helper in FFT tests.