Initial implementation of the sparse matrix.

@bsoetaer 
Tests pass when the contracts are disabled.
I believe alias doesn't work for class methods.