Reuse data structures in k_cutsets.

As expected this increases a lot the speed of the function.
In the tests this is ~4x faster, and in some real world
sparse networks with skewed degree distributions, it is more
than 10x faster.