Distance implemented, and distance file storage implemented. TODO:
implement different interpretations and different distances; integrate
pruning.