function releaseArray(array) {
    array.length = 0;
    if (arrayPool.length < maxPoolSize) {
      arrayPool.push(array);
    }
  }
Releases the given array back to the array pool.

@private
@param {Array} [array] The array to release.