Checks if the given matrix is the identity matrix.
The matrix that is to be tested.
true if the matrix is the identity matrix, false otherwise