Added c++ version
Updated c++ version