Implemented both Gossip and push-sum, four topologies