buggy selection sort; dupe value throws it off
wanting to branch