Add cross-correlation function