Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
Equality is neither a precondition, nor a postcondition for equality.