qterms function

Create a vector of quadratic and cubed terms for use in linear and logistic regression