use svm() function in e1071 package to build a model; add getTestingError() function