Added exception for operations that expect a square matrix, but don't receive one.
Added a getInverse() function for the matrix class.
Added a rudimentary test for testing Matrix inversion.