Period search
Fast Fourier transform