Practice C with sorting algorithms