Better documentation of make_cost_matrix modification