DPmatching function

calculate degree profile distances between two graphs and match nodes.