Simple sorts implemented in C++.