generated indices for closest nums to cluster