Matlab implementation of SVM