C++, Console Bubble Sort algorithm