Implementation of infix notation to postfix notation