add.distance function

Add distance information to resampling objects