Added cpp file and modified ReadMe file