copying hw6 svm stuff; making svm tester