using lists

instead of defining the tree as its own class, have each level of the tree represent by a list of numbers, 
for example the top level is [1], the second level is [1 ,1] etc.