C++ Sort Array in ascending Order