convert from infix to postfix, support parentheses