SVM training algorithm for project TracMe