Parallelize calculations