conversion from syntax tree to RPN is passing tests