Added array access to Matrix and Vector

Restored array access to the Matrix and Vector classes for backwards compatibility.