Sample codes for sorting algorithms written in C