cv function

Cross-validation Framework