Wrote selectionSort for SuperArray