added selection sort for an array