C++ migration

Hi guys, I began writing some structs into c++ code. I also created a cpp with small tests. I will go on. Please review and comment what you don't like. :)