working on SelectionSort and ShakeSort