New subroutine cl_set.rebuild_chains()