Moved linear/logistic regression implementations into share base class ml_regression_base