find the shortest unique prefix of a list of strings