xsubcoh

-to continue at line 811

-need to define distance function in toolkit module
-need to overload +/- operator in xnode module