Add missing methods to util.sparse