particle-swarm: Implement social hierarchy for particles

Particles are only attracted to other particles which are larger than
them.