Commented the code and added support for matrices larger than 10000x10000.
This was done by placing the matrix on the heap as a 2d vector.
Lookups and general indexing takes longer, however this is the same for all.