pruned distance