Scalability with the nearest neighbor