Compute all possible ranking for Kemeny-Young algorithm