Gradient descent solution logistic regression