Linear And Logistic Regression Algorithms