Modify Shell Sort