initial code for string class

Sample code for string class implementation in c++, easily usable in project.