now its a double linked list
merged with tree