modify shellsort