evaluating infix expressions with shunting yard algorithm