logistic regression algorithm added