evaluate rpn