Compute winners in elections based on various voting rules.