test program for multi-dimensional arrays