[Feature] selectAnyLink: Changed code such that no hint is a prefix of another

- Also, simplified hint generation logic since we shouldn't need to
generate more than a few hundred hints at max. in realistic  cases