Added getValues and write to DistanceMatrix interface for broader use