Added warnings to use of cost_matrix