Distance-based undirected formations of single-integrator and double-integrator modeled agents in n-dimensional space | Synapse