cost function and gradient for regularized logistic regression
corrected regularized logistic regression, should not regularize theta_1
varing regularization parameter lambda changes decision boundary and prediction accuracy