implemented re2postfix