flann_indexer improvements