adding linear and logistic regression implementations using gradient descent