Added compact representation of sparsity patterns #169