Implement arithmetic operations in VM.