Added tests for qsort in C