added flann akmeans init