implementation of ford's "Solution of a Ranking Problem from Binary Comparisons"