insert into doubly sorted linkedlist