modMATRIX function

Create a matrix