Implemented linear SVM