Improved linear regression and added logistic regression.