Simple RPN implementation.