hash_set: modify the sparsity calculation method to return a map instead of a tuple.

This is more useful as it conveys more information on the structure of the table.
kronecker_polynomial: enable the new sparse algorithm.