A possibly working version of logistic regression. First we should
test it on some known data then we should see if it matches python for
the real data.