computePowers function

Compute powers of the explanatory variable a as well as of the person location l (data preparation)