1.a and 1.b solved

PiGenerator.powerMod implemented and tested