Putting common operations in a new utility file and adding initial
implementation of logistic regression.