Working on #3.

Implements a method to compare the sparsity pattern of two matrices.