playing with shunting-yard algorithm (Qt)