svm: triplets times two