snailsort in progress