modelselect function

Select the best models