def chebyshev(pos1, pos2):
    """Find the Chebyshev distance from pos1 to pos2
    where pos1 and pos2 are n-dimensional vectors
    this is the greatest of all differences along the coordinate dimensions"""
    return max(abs(a-b) for a, b in zip(pos1, pos2))