Main sorting algorithms implemented in C/C++