N-ary tree returning absolute position of nodes through unique id and name