This is a popular classification method in machine learning, which called k-NearestNeighbor(KNN).