Implementation of Particle swarm optimization in C.