- adding (reg-){linear, logistic}-cost-function helpers