added Array and Matrix functions