move c++ code to cpp dir