minor update to selection sort