Function to test the C implementation of the FFT, IFFT 1D and 2D and the inner product