Moved pitch detection algorithm into its own file to allow for easy
switching between different algorithms (FFT- and autocorrelation-based,
for now)