implemented part 1: SVM
implemented part 1: log reg