Implement matrix-like methods in gdt tables to accept matrix indexing

Using an "index" functions the fields size1, size2 and data are returned.
This latter is a an object data can accept a custom index of the form

t.tda * i + j

to be compatible with matrices.