Partitioned distance function

WWW: https://cran.r-project.org/package=pdist
