made flann version of kmeanspp