Implements a basic Particle Swarm Optimization in Java.