smoothsort

smoothsort implementation