The F-Ilc Algorithm: A Fourier Series Based Iterative Learning Control Algorithm