Added logistic regression algorithm