Sorting algorithm properties