Support classes for ai's

File contains support class, to help dealing with node trees.
Contains methods to expand and release memory of the node tree