model_matrix function

Construct Design Matrix