added selectionSort, not working properly