added svm classification function and visualizer function