ccf_rs function

Calculate regime-switching cross-correlation