A small particle swarm optimization library written in C++