The Hungarian Algorithm.