Linked list tree representation