C++ parallel version of transport problem