Update cv.R

changed the condition of termination. If the newmean is very close to the oldmean, we don't think there is an improvement to the model. This might be useful for "refit"