Add selectionsort algorithm js version