Added template methods to fill in for Matrix, Implemented functions to create Matrix data