Hmm, Hash tables might be an alternative, I will look into that aswell.