Implementing the fft code amd testing it.