Implementation of various distributed algorithms