Modified runSVM.m so that we can easily switch the type of SVM.