Implemented trollsort.