Restored matrix functions
Allow variable-length arrays to resize automatically