local functions in quicksort and -finished- queens