modified monofft to use fftw3 alogrithm