If the tree is a fork, flatten it into an array of trees
the tree to flatten
HashTree[] - the flattened tree
If the tree is a fork, flatten it into an array of trees