Create MaxSliceSwap.cpp