Real FFT and IFFT (one-dimensional) finally seem to be working