Refactored FFTW wrapper