add kernel functions to train SVM