Parallelization implemented

works on Windows and POSIX