i have a list of ids(about 7000)..... 31 ids belongs to group1,group2,group3 and so on....

i want to be able to search in which group an id is.....

what's the best structure to use to store the groups and ids??