split the matrix to seperate file, started working on the matrix object