C++ code should be added as reference code

It would be nice if there is C++ code also apart from python and java.

As the structure of C++ code will be different and the way to implement will be different as there pointers are coming into the picture. So to add those will be a big plus.