Updated call to std::max() to fit new size_t member variable types.
Added IntegerType as a template parameter to ArrayDelete() to support unsigned int and size_t 'num' parameters.