A swarm algorithm using Sparrow