On the Similarity of Sets of Permutations and Its Applications to Genome Comparison