A general algorithm for robot formations using local sensing and minimal communication | Synapse