insert in sorted doubly