SVM implementation, and sklearn NB tests