Finish regularized logistic regression

Refactoring coming up