Instant Runoff Voting algorithm