implementation of fft and complexes + fft on a buffer