version 4 of fft. Precalculate twiddle factors