StartParallel function

Calculate distances in parallel