This C++ API demonstrates how to create and execute a Reorder primitive.
Key optimizations included in this example: