Fixed the shell sort algorithm