code for infix evaluation not working. need to fix it