An implementation of simple Particle Swarm Optimization