A collection of algorithms for distributed sytems