Create Hungarian algorithm