FFT with own functions