Algorithm for Fast Fourier Transform in C++.