Bug fixed in SelectionSort