Finished implementing shunting yard.