Although you mention the "Hungarian method", which is polynomial (n cubed), you are apparently attempting to implement an exponential (brute force) method. I assume it's the brute force method you...