In-place bubble sort in C.