Create NodeTools.cs

Moved utility code from PreciseNode.cs