add C++ solutions