multithreaded version of baseline_fftw