trying to implement shunting yard