add .gitignore; run clang-format; rename .cc to .cpp