costFunction for regularized LR has been implemented. gradient implementation for regularized LR has been refactored.