Adding regularization for lasso, ridge, and elasticnet