finished multiprocessor distance matrix