Parallelize building kmeans index in flann

I improved k-means index in flann module by parallelize computing distances between datas and centers. It would be great if you have a chance to review and merge it. Thanks!