Inserter for sparse matrix