BADS: Bio-Inspired Algorithms for Distributed Systems