implementing SelectionSort Class