Depth added to tree
Tree fold refactor