Add knn blog sample code