implementing VM in C++
machine body done (not tested)