added fftw correlation function