Implement stack for Virtual Machine