code: protected void addInternal(double dist, int id) {
      if(size == dists.length) {
        grow();
      }
      dists[size] = dist;
      ids[size] = id;
      ++size;
    }
docs: Add an entry, consisting of distance and internal index.
  
  @param dist Distance
  @param id Internal index