rpn2infix, store priority of previous converted rpn