start logistic regression
input can be a vector or matrix as well
cleanup