The distance D(A,B) between two points A(x1,y1) and B(x2,y2) is defined as follows.
D(A,B)=∣x1−x2∣+∣y1−y2∣
You are given N points A1,A2,…,AN. For each point Ai, find the closest point Aj among the others and report the distance D(Ai,Aj).