code: public double set(int[] indices, double val) {
          checkIndices(indices);
          int c = getConfigIdx(indices);
          double prev = values[c];
          values[c] = val;
          return prev;
      }
docs: Sets the value of the entry corresponding to the given indices.
  @param indices The indices of the multi-dimensional array.
  @param val The value to set.
  @return The previous value.