making logistic regression class
finished logistic sgd