nearest Neighbor 완성