An implementation of the kth nearest neighbour, in Clojure. Specialised to R^2, using a quadtree to store the training data.