add selection sort method