number of ways to traverse 2d array