Add docs for tree traversal functions
Add specs for tree traversal functions