Pairwise classification and support vector machines