Write cross-validation script to test number of modes and AR order under different priors.