added Array() function to matrix types