Convert infix to postfix notation using binary trees.