playing with shunting-yard algorithm (java)