Consensus Algorithms For Single-Integrator Multi-Agent Systems