Added some helper classes and made more things run on forkjoinpool (i.e.
now on multiple cores).