Tree done using singly linked list