made function to find autocorrelation coefficient