start a cpp implementation
moved python files, fixed pointers