Alternate RPN implementation