knn
compile in linux, seg fault now
fix seg fault