Ruby gem to compare permutations using distance measures/metrics