Added bootstrap.
Doing on-the-fly calculation of distances.