solve infix