The implementation of MOPSO in C++