implement RPN converter