template_logistic function

Template: Logistic Regression