Start of developing C++ parallel implementation