refactoring
Python implementation of KNN

This takes only 16min (as opposed to 2hr for my
highly hand-tuned Haskell soln), and gives completely correct result!