regularized LR cost function and hradient have been added.
regularized cost function has ben fixd