Insert a node into a sorted doubly linked list