code: public void reset()
      {
          for(int i = 0; i < index.size(); i++)
              index.set(i, i);
      }
docs: Resets the index table so that the returned indices are in linear order,
  meaning the original input would be returned in its original order
  instead of sorted order.