working on selection sort