[trunk] betta version of knn