Logistic regression cost function and gradient