How can I write an ID variable to the resulting tree matrix. so that the first matrix gets ID=1 and the second ID=2 in row-major order? I would like to use this ID variable for further graphing using it as a group variable? I thought about using the any ALL function but I cannot figure it out.