refactored SVM code to add SVMDistance