Selection sort example

The number in bold is the maximum; the numbers that are underlined are already sorted.