Accurate algorithms for consensus ranking detection