Code to simulate, run, and calculate elections with different election methods