bubblesort in C++, plus a bit basic setup