Ballot vector optimization

Changed the ballot reassignments to ballot vectors instead of ballot
objects.