Initial solution at making linked lists for each depth of a tree

My tentative, crude, and untested solution for making linked lists of nodes at each depth of a tree.