fourier transform script in C++