Tensor product of arrays