Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
what is other? Should this be value?