Algorithms for identification key generation and optimization with application to yeast identification