shell_sort cleanup