Simple sort implementations in C++.