Parallelize libdistance dist and assignment calculation with openMP.