Implemented 10-fold CV and LOOCV into GLM