Initial kind of working knn without tests
Small fixes for broken tests, and finished a basic knearest neighbor