docs: @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      super.readExternal(in);
      int k_max = in.readInt();
      knnDistances = new double[k_max];
      for(int i = 0; i < k_max; i++) {
        knnDistances[i] = in.readDouble();
      }
    }