Adding a C version of bubble sort