mvoing to libANN for nearest neighbor