Adding the C++ files for factorial

Adding the C++ files for factorial and improving the docs
Removing old CPP file.