fast matrix-equals
~400x faster than vector-based one for 300x2 matrix