Computing autocorrelation successfully