fixed bug in linear and logistic regression, they now adjust both the slope and intercepts simultaneously