first implementation of selection sort
remove ss