The maximum number of dimensions our code can handle.
We'll use this to statically allocate a bunch of arrays below.