stack: clean code of infix_postfix_calculations