Improve .gitignore
Add matrix class