Created aTDT method for matrix class

Eventually we can change the matrix class to a Holger-style trio class matrix.  Right now this is useful to make incorporating trio into the package easy.  Simply and functions to functions.R, add extension .fn to function names and create methods.