Implementation of the fast Fourier transform