Implement fftw_plan_dft_1d