Feature/multiprocessing

For faster matrix generation