Working on a tree data structure to hold directory contents