added selection sort in js