Update S6_ArrayFunctions.cpp