rpn recursion method re-write, build will probably fail