Insert into a cyclic sorted list