Implemented logistic regression and naivebayes