efFourier function

Calculate the first M Fourier basis functions