Switch to using spam, not Matrix, for sparse matrices

This seems to be much faster, if somewhat harder to deal with. The roxygen in ``R/spam.r`` also seems rather verbose.