added solutions to c++