Core Hunter: an algorithm for sampling genetic resources based on multiple genetic measures