Adding .gitignore and C++ implementation