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)
Merge branch 'master' of https://github.com/eyetracker/ps1_PI_words_generation