code: public DistanceInstanceIterator prepare(DistanceInstanceIterator it) 
  	{
  		List multiDistances = asMultiDistanceInstanceList(it);
  		return new BasicDistanceInstanceIterator( multiDistances.iterator() );
  	}
docs: Prepare data for the learners.