Given a tree, create a linked list at depth D