RPN, Shunting-yard algorithm