Create threaded tree traversal