speed up fof with permutation.

now we merge progenitors directly. This reduces the total number of
required kdtree walks. Also the new algorithm seems to be parallel-
stable.