Update Hungarian algorithm from Hungarian.js to include support for rectangular matrices