determines the indices of the k closest sfs
now really determines the indices of k closest sfs (hopefully)