Integrated stackPush and stackPop into operatorEvaluate function