kNN Source Sode...

Source code implementing the k-NN K Nearest Neighbors algorithm can be found at this post. It implements Icefox's framework, details of which are in this thread.