add chebyshev distance