implemented shunting-yard algorithm
evaluate an expression in postfix notation