Infix to Confix algorithm working