Dynamically evaluating math expressions using a Stack.