Use selection sort to sort a possibly empty array. Ensure that all elements remain the same.