assisted selection sort now works