Work in progress on path compression in mergeNodes(). Disabled by default and not ready yet.