Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
Agree. Should at least use something like tridiagonal