Continued editing for makeflow_scalability_speedup
Use the set structure to copy the linked list of nodes and remove the complete node from the set.
The set structure is described in dttools/set.h and dttools/set.c