code: void generator( int degree ) {
  		// initialize to a polynomial = 1
  		initToOne(generator,degree+1);
  
  		// (1*x - a[i])
  		tmp1.resize(2);
  		tmp1.data[0] = 1;
  		for (int i = 0; i < degree; i++) {
  			tmp1.data[1] = (byte)math.power(2,i);
  			math.polyMult(generator,tmp1,tmp0);
  			generator.setTo(tmp0);
  		}
  	}
docs: Creates the generator function with the specified polynomial degree. The generator function is composed
  of factors of (x-a_n) where a_n is a power of 2.<br>
  
  g<sub>4</sub>(x) = (x - α0) (x - α1) (x - α2) (x - α3) = 01 x4 + 0f x3 + 36 x2 + 78 x + 40