Bubblesort algorithm in C