Removing unused values in matrix.hpp and adding some extra .gitignore