Update gen.interactions.r

Add quadratic term option