added some code for cv regularization optim for ssvs