add multithreading C++ examples