insert sorted doubly