selection sort array task6.js complete