An implementation of PSO in C