hungarian matching

doesn't work
due to a problem in building cost_matrix