Conversion among infix, prefix, postfix expressions using stacks