fftw.c add basics for a r2r method