Implementation of simple Particle Swarm Optimization according to wikipedia http://en.wikipedia.org/wiki/Particle_swarm_optimization