make Matrix an Array-like object