Create Matrix.ts