add hungarian algorithm