Code implementing game-theory based voting system by Emily Shen and Ron Rivest