implemented chebyshev distance and his test