Explore the implementations of spatial k-nearest-neighbors (KNN) algorithms.