updated cross-validation for ridge regression