added regularization code, lambda=1