Stooge sort in c++. This is the recursive version