reverse polish & shunting yard