Implementation of some famous sorting algorithms in C