fit_logit function

Fit logistic regression