Update autocorr.cpp

implroving performance autocorrelation