Yea, as theRat said, hash tables would do the job a lot better. They're more efficient, and you can make use of /hinc.