Selection Sort (continued)
/* swap ar[minI] with ar[I] */
Other sorting methods:
- insertion sort: sorts one element at a time into those already sorted
- Bubble sort: compare elements two by two, and swap if out of order
- Quicksort: break the array into two parts, and sort separately