add knn

add code to make data into format useful for pmf