tune function

AIC, AICc or BIC based model selection