kernel svm implementation, not para-active