Added Mat constructor for n-dimensional mat