Matrix equality

Implements a test for matrix equality