added parallel stringdistmat functioin