In-place Bubble sort algorithm in C