how to compute fft and ifft