Updated logistic regression to have an extra x_0 element in the vector that's always set to 1.