Checks if two matrices are equal.
The first matrix
The second matrix
true the matrices are equal, false otherwise