Implementation of standard Sorting algorithms in C