Consensus Algorithms for Single-Integrator Multi-Agent Systems