added script for calculating auto correlation