Implemented main.py (ported), profiled PiGenerator: powerMod (2x speed) and more

Implemented 1.c, 1.d in Java as well
Compiling for Java (makefile)
Profiling in Java (hprof)