added tbb version of gdist