buggy selectionsort; dupe numbers break it