to_index                Turns one or multiple vectors into an index
                        (aka group id, aka key)
