added cmake file and initial C++ code