added basic c++ implementation

nt