refactored ntg_node struct into new class ntg_internal::CNode