Yet another Logistic Regression implementation