SparseMap matrix type

SparseMap uses std::map. can be converted to Sparse using
Sparse(SparseMap&) constructor