I have a list (matr) which represents a tree being traversed in level order.
The first digit is the number of children and the second is its "level", starting a