Final version infix.cpp