Creates a nesting tree of nodes, where the nodes represent the nesting of the loops.
eOk if tree creation is successful.