Finished implementing going up the tree and making all leaves into a linked list to be rebuilt.