Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
Ordinary enumerables don't have each_with_index.