A generic combsort implementation.