implement nearest method
add knn algorithm example