init and add kNN