Implemented regularized linear regression