somewhat halfbaked attempt at pairwise learning