Gossip Pushsum algorithm in scala with result report in php