added parallel computations of distances in MOHGP using omp