Voting Algo implementation