Implementing a Multi-Class SVM