Wrote autocorrelation method and a test for it.