As a simple but not trivial program using multidimensional arrays, please see this example
I created the program above for a post on this forum a while ago (you can find the link to github repo in the post)
I might have another example that uses 4-dimensional arrays, if I can dig it out