Reimplementing inorder and preorder tree traversal
Implemeting length endcoded decode as a generator