Add KNN (C# version)