Java implementation of Stack-based VM