modelSelectionC function

Exact model selection function