Optimising a Tournament for Use with Ranking Algorithms