added SVM functions in main