Fix gitignore
Add helper method for generating matrices