SVM code for by Martijs Jonker #matTools