new implementation of autocov & autocorr