finished shunting yard algo to convert to rpn