added selectionSort