public void Save(BinaryWriter output) { output.Write (this.IDs.Length); PrimitiveIO<int>.SaveVector (output, this.IDs); output.Write (this.dist2center.Length); PrimitiveIO<double>.SaveVector (output, this.dist2center); output.Write (center); }