Parallelization of all algorithms

Parallelization code completed. Time to run tests and fix possible bugs.