Implemented both gossip and push-sum