Streamlined the code
Streamlined the code

Removed redundant code and made more use of features of the Thrill Framework. Still the check whether the computation is complete is the bottleneck.

manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill