Classification on Pairwise Proximity Data