Binomial Logistic Regression Algorithm