Adding the ridge regression code using PCA'd components