Simple implementation of a Virtual Machine (VM) in C#