adds option to parallelize in TBB with 2d for loops