metric scores for permutations