Collective behavior of animals: swarming and complex patterns