Implemented task 2 pairwise SVM