R package with functions for sparse matrices