add work thread for computing

compute for diameter and average distance