Some array 2d utility methods.