Few sorting algorithms implemented in C++