An auxialiary function to quickly construct the polyomial matrix, using Horner's rule
buildXmat(x, nc)
x
The base
nc
the number of columns
A matrix with increasing powers of x in the columns