Added dynamic hungarian algorithm and related input