Add selection sort algorithm.