Virtual Machine refactor

@stijn22 @TimManders 

Added refactor for RPN in compiler, see commit message