Algorithms for Particle Swarms Using Global Control: Aggregation, Mapping, Coverage, Foraging, and Shape Control