Particle Swarm Optimization in ruby