Implementing the support vector machine