selectionSort in the process of testing