Inclusion of logistic regression algorithm and improvements