Refactor to move useful sparse functions to SparseUtils.
Param tweak and timings.