code: public void add(int num, int[] indices) {
          for (int i = 0; i < indices.length; ++i)
              indices[i] += num;
      }
docs: Shifts the indices. Useful for converting between 0- and 1-based
  indicing.
  
  @param num
  Added to every index
  @param indices
  Indices to shift