Collected transpose functions in cpp file + gitignore update.
Added inverse functionality for dense matrices + test.