add tree directory and initial tree traversal code, not tested yet