added multithreading and duplicate graphs to average path length