Bubble sort in C++