Working on selection sort method