Update for selection sort, bubble sort, and quick sort