Sorting algorithms, implemented in C++.