selection sort = working