logistic_reg function

Logistic regression