Update Hungarian algorithm