Changed Selection Sort