Make 'traverse_tree()' use linked structure rather than 'const char *base'