OO framework for building gossip algorithms and ad-hoc application on ordinary machines