Added CMakeLists.txt and reconfigured gitignore to ignore build directory instead of output-type files