Move functions based on CSparse to base/jlsparse.jl