svm and nearest neighbor