Add tree traversal sample