Added interfaces for sparse matrices