Simple C++ implementations of common sorting algorithms