added selection sort