Infix to postfix and postfix evaluation