Added C++ solutions