A JavaScript implementation of the Hungarian algorithm.