Update C++ Selectionsort