Create cpp_pthreads_algorithm