Replace `distance_matrix` with `cdist`
Merge pull request #1 from stefanv/cdist

Replace `distance_matrix` with `cdist`