Fast algorithm of adaptive Fourier series. (14th February 2018)