refine insertion sort to use ruby's delete & insert