Sort array using selection sort: repeatedly find the minimum element in the unsorted portion and place it at the beginning.
Examples