Very simple particle swarm implementation