Sorting algorithms in C with a test framework