update knn code
build pyr
build pyr