Distributed fourier transform