Combining SVM Train and Classify to prevent all the pointers being passed around