Changed my selection sort algorithm.