an implementation of support vector machine