creted fft functions using std::complex and separated code