voting: implement instant-runoff voting algorithm.