now need to pass max time to bin_binary, added function to calculate autocorrelation function and test