Logistic regression cost function

LRCOSTFUNCTION Compute cost and gradient for logistic regression with regularization