A function to construct a model matrix of a certain degree
getModelMat(y, degree)
y
the variable
degree
the degree
A model matrix with degree+1 columns and as many rows as lenght(y)