Just like nextTree but when last tree is reached we wrap around to the first tree with the same node count.
nextTree
Just like
nextTreebut when last tree is reached we wrap around to the first tree with the same node count.