First upload of C++ source

Original C++ source code added to project.