Safe and secure control of swarms of vehicles by small-world theory