Added hint to distance_upper_bound