Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
apply_through_coercion does not exist