Continued implementing node compare.

Encountered some design issues regarding lists and sets referring to other lists and sets rather than nodes.