Implemented and tested SelectionSort.