Separated c++ code

Made a new analysis-2d project