Using std::sort in alg sort_memory example