making fftw multithreaded