compute_mallows function

Preference Learning with the Mallows Rank Model