Added arrays.

The array is filled with the 9999 value as infinite.