Converts expressions from infix form to postfix form (and vice versa)