Swarms of bats, birds and locusts may strike fear in the heart of humans, but as scientists are discovering, we all might be following the same patterns of behavior.