Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
Creates a shallow copy. Is this what you want?