computing rpn