Implement AIC and BIC