Added LOOCV code