Added peakFreq function

This function can detect the peak frequency of the data. No need to do
anything manually anymore.