Swarming to solve problems