fixed shell sort bug