Use hash maps instead of regular arrays