add selectionsort method