Extend arrays to allow max ID value

The array was defined up to but not including the key value, it needs to include the max value to avoid out of bounds exceptions
Merge pull request #4 from kbickar/patch-1

Extend arrays to allow max ID value