Garon's crude little knn file.  Elegant code to come later.