acf_rs function

Calculate regime-switching auto-correlation