Moved some functions from sparsity_tools.hpp, #983
Added static creator methods in Sparsity, #983