implemented fftx and ffty