A naive fast Fourier transform (FFT) implementation in C++