Move fft time->freq and freq->time in one template implementation