Particle Swarm Optimization (PSO) Sample Code using Java