test contiguous 2d array