correlation function calculator